class Arr{
    //...
    int len;
    public:
    operator char *();
};

Arr::operator char *(){
    char * newarr = new char[len];
}

void fun(char * a){}

int main(){
Arr a;
fun((char *)(a));
}